﻿package  
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	
	public class Parser extends MovieClip
	{
		
		public function Parser() 
		{
			init();
		}
		
		
		private function init ( ) :void
		{
			var s :String = "";
			s += "時間,サイズ,テキスト\n";
			s += "時間,サイズ,テキスト\n";
			s += "時間,サイズ,テキスト\n...";
			
			ta0.text = s;
			
			bt.addEventListener(MouseEvent.CLICK, _click);
			
			//ta0.text;
		}
		
		private function _click ( evt :MouseEvent ) :void
		{
			var tp :TxtParse = new TxtParse();
			ta1.text = tp.parse( ta0.text );
		}
		
	}
	
}